package cas.ihep.fs;

import java.io.Closeable;
import java.io.IOException;
import java.net.URI;

public interface UnifiedFile extends Closeable {
    int PERMISSION_READ=4;
    int PERMISSION_WRITE=2;
    int PERMISSION_EXECUTE=1;
    int PERMISSION_RW=6;
    int PERMISSION_RX=5;
    int PERMISSION_RWX=7;
    int permission()throws IOException;
    long length()throws IOException;
    URI path();
    UnifiedBlock block(int index)throws IOException;
    UnifiedBlock next() throws IOException;
    void delete()throws IOException;
    void persist()throws IOException;
    void free()throws IOException;
}
